#include <iostream>

struct student
{
    //函数也成为了结构体的一部分
    void show()
    {
        std::cout<<name<<" "<<id<<std::endl;
    }      
    void SetId(int id)
    {
        id = id;
    } 
    char name[20];
    int id;    
};

using stu = struct student;




int main()
{
    student s = {"zhangsan",1};
    student t = {"lisi",3};
    s.show();
    t.show();
    return 0;
}